﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCentents/Centents.Master" AutoEventWireup="true"
    CodeBehind="SchoolSet.aspx.cs" Inherits="School.UserCentents.SchoolSet" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script>
        function Check() {
            if (document.getElementById("txtName").value == "") {
                alert('学校名称不能为空');
                return false;
            }
            return true;
        }
    </script>
    <div id="MainBody">
        <!-- 右侧开始 -->
        <div class="mainHeader">
            <div class="itopic">
                <img src="../images/body_side_icon_set.gif">学校设置</div>
        </div>
        <div class="mainBodyShow">
            <table id="EditInfo" cellspacing="0" border="0">
                <tbody>
                    <tr>
                        <td class="LabelTitle">
                            学校名称：
                        </td>
                        <td class="LabelShow">
                            <asp:TextBox runat="server" ID="txtName" CssClass="InputTxt" Width="250px" MaxLength="100"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="LabelTitle">
                            学校简介：
                        </td>
                        <td class="LabelShow">
                            <asp:TextBox ID="txtJianjie" runat="server" TextMode="MultiLine" Width="580" Height="120"></asp:TextBox>
                        </td>
                    </tr>
                    <%--                <tr>
                        <td class="LabelTitle">
                            学校图片：
                        </td>
                        <td class="LabelShow">
                            <input id="simg" class="InputTxt" maxlength="255" size="70" name="simg">
                            <a onclick="showupswf();" href="javascript://">上传图片</a>
                            <div id="updiv_master">
                            </div>
                        </td>
                    </tr>--%>
                    <tr>
                        <td class="LabelTitle">
                            学校公告：
                        </td>
                        <td class="LabelShow">
                            <asp:TextBox ID="txtGongGao" runat="server" Width="580" Height="320"></asp:TextBox>
                            <script src="../js/editor/kindeditor-min.js" type="text/javascript"></script>
                            <script type="text/javascript">
                                KE.show({
                                    id: '<%=txtGongGao.ClientID %>',
                                    imageUploadJson: '<%=HttpContext.Current.Request.ApplicationPath %>/js/editor/asp.net/upload_json.ashx',
                                    fileManagerJson: '<%=HttpContext.Current.Request.ApplicationPath %>/js/editor/asp.net/file_manager_json.ashx',
                                    allowFileManager: true,
                                    afterCreate: function (id) {
                                        KE.event.ctrl(document, 13, function () {
                                            KE.util.setData(id);
                                            document.forms['aspnetForm'].submit();
                                        });
                                        KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
                                            KE.util.setData(id);
                                            document.forms['aspnetForm'].submit();
                                        });
                                    }
                                });
                            </script>
                        </td>
                    </tr>
                    <tr>
                        <td class="LabelTitle">
                        </td>
                        <td id="idMsg" class="LabelShow">
                            <asp:Button ID="Button1" runat="server" Text=" 提交 " CssClass="SubmitBtn" OnClick="Button1_Click" OnClientClick="return Check()" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- 右侧结束 -->
    </div>
</asp:Content>
